import styled from "styled-components";
import {DarkFontColor, StrongBackgroundColor} from "@/style/Color";

export const HeadBackgroundImage = styled.div`
  width: 100%;
  height: 380px;
  transform: scale(1.1);
  opacity: 0.8;
  position: absolute;
  filter: blur(15px);
  float: left;
  background-image: url(${props => props.imageUrl});
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-bottom: 30px;
`
export const VideoContainer = styled.div`
  width: 100%;
  height: 100%;
  float: left;

  .about {
    width: 25%;
    height: 358px;
    float: right;
  }
`
export const ImageContainer = styled.div`
  width: 100%;
  height: auto;
  float: left;
`
export const GameInfoContent = styled.div`
  width: 45%;
  height: 100%;
  float: left;
  text-align: left;
`

export const GameResourceContent = styled.div`
  width: 55%;
  height: 100%;
  float: right;
`
export const Resource = styled.div`
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
`
export const ResourceHead = styled.div`
  width: 100%;
  height: 35px;
  float: left;
  text-align: center;
  color: #555555;

  .free-text {
    font-size: 15px;
    font-weight: 600;
  }

  border-bottom: 2px dashed #d5d5d5;
`
export const ResourceBody = styled.div`
  width: 100%;
  float: left;
  height: 100%;
  color: #555555;
  font-size: 13px;

  .item {
    margin-left: 5px;
    float: left;
  }
`

export const ResourceContent = styled.div`
  width: 100%;
  height: auto;
  float: left;
  padding: 0 10px;

`

export const DescriptionContainer = styled.div`
  box-sizing: border-box;
  max-width: 100%;
  min-height: 100%;
  margin: 0 auto;
  padding: 30px 20px;
  overflow: hidden;
  color: ${DarkFontColor};
  font-weight: 600 !important;
  width: 100%;
  height: auto;
  float: left;
  font-size: 15px;
  line-height: 1.35;

  img, audio, video {
    max-width: 100%;
    height: auto;
  }

  p {
    white-space: pre-wrap;
    min-height: 1em;
  }

  pre {
    padding: 15px;
    border-radius: 5px;
  }

  blockquote {
    margin: 0;
    padding: 15px;
    border-left: 3px solid #d1d1d1;
  }
`
export const RightContent = styled.div`
  width: 24%;
  margin-top: 20px;
  height: auto;
  float: right;
  padding: 5px 25px;
  background-color: #FFFFFF;
`
export const BodyContent = styled.div`
  width: 75%;
  min-width: 960px;
  margin-top: 20px;
  height: auto;
  float: left;
  padding: 5px 25px;
  //background-color: ${StrongBackgroundColor};

  .title {
    color: #363636;
    border-color: #d9d9d9;
    font-size: 10px;
    letter-spacing: 1.5px;
    user-select: none;

    span {
      font-size: 14px;
      color: #999999;
    }
  }

`
export const HeadContent = styled.div`
  width: inherit;
  height: 380px;
  position: relative;
  user-select: none;
  /* 左侧容器 */

  .left {
    width: 25%;
    padding: 10px;
    height: 100%;
    text-align: center;
    float: left;
  }

  /* 右侧容器 */

  .right {
    width: 75%;
    height: 100%;
    float: right;
    background: rgba(120, 120, 120, 0.4);
    color: #ffffff;
    padding: 10px;

    .iframe {
      .bilibili-player-video-sendjumpbar {
        color: rosybrown;
      }
    }

    .resource-title {
      user-select: text;
      height: auto;
      font-size: 13px;
      text-align: left;
      color: #333;
      border-radius: 5px;
      padding: 10px 10px 25px 10px;
      background-color: rgb(255, 255, 255, 0.8);
      margin-bottom: 20px;
    }

    .resource-content {
      padding: 5px;
      height: auto;
      text-align: left;
      font-size: 13px;
      color: #333;
      position: absolute;
      bottom: -15px;

      .path {
        background-color: #323a46;
        color: #ececec;
        border-radius: 15px;
        border: 1px solid #323a46;
        font-size: 13px;
        padding: 0 15px;
        margin-right: 10px;

        :hover {
          color: #323a46;
          background-color: #ececec;
          border: 1px solid #323a46;
        }
      }

      .secretKey {
        color: #323a46;
        background-color: #ffffff;
        border-color: #323a46;
        border-radius: 15px;
        font-size: 13px;
        padding: 0 15px;
      }
    }

    .website {
      a {
        color: #444444;
        font-size: 14px;
        background-color: white;
        border-radius: 10px;
        padding: 0 15px;
        font-weight: 600;
      }
    }

    .source {
      width: 400px;
      height: 135px;
      background: rgba(255, 255, 255, 0.5);
      border-radius: 5px;
      overflow-y: auto;
      padding: 5px;
      float: left;

      .row {

        height: 100%;
        width: 100%;
        display: table;
        text-align: center;

        .col {
          width: 100%;
          display: table-cell;
          vertical-align: middle;
          color: #333333;
          font-weight: 600;
          padding: 10px;
          border: 1px dashed #999999;

          .price {
            font-size: 25px;
            color: #ffb400;
            padding: 10px;
          }

          .btn {
            font-size: 25px;
            margin-top: 15px;
          }

          .prompt {
            margin-top: 5px;
            font-size: 12px;
            color: #999999;
            font-weight: 500;
          }
        }
      }
    }

    .source::-webkit-scrollbar {
      width: 5px;
      height: 1px;
    }

    .source::-webkit-scrollbar-thumb {
      border-radius: 15px;
      -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
      background-color: #ebebeb;
    }

    .source::-webkit-scrollbar-track {
      border-radius: 10px;
      //background-color: #ffffff;
    }

    .echarts {
      width: 200px;
      height: 200px;
      float: left;
    }

    /* 游戏标题 */

    .title {
      padding: 10px 0 0 0;
      width: 100%;
      height: 60px;
      float: left;
      font-size: 25px;
      line-height: 20px;
      margin-bottom: 15px;
      opacity: 0.8;
    }

    .chinese-name {
      max-width: 400px;
      height: 50px;
      float: left;
    }

    /* 英文名称 */

    .english-name {
      width: inherit;
      font-size: 14px;
      line-height: 20px;
      height: 50px;
    }

    /* 游戏厂商 */

    .company, .time {
      font-size: 15px;
      width: 100%;
      height: 25px;
      float: left;
    }

    /* 评分数字 ↓ */

    .totalScore {
      margin-left: 10px;
      padding: 2px;
    }

    .totalScore :not(.no-score) {
      background: linear-gradient(to right, #faea02, #ff8e00);
      -webkit-background-clip: text;
      color: transparent;
    }

    .no-score {
      font-family: 微软雅黑, serif;
      font-size: 25px;
      font-style: italic;
    }

    .int {
      font-family: 楷体, serif;
      font-size: 40px;
      font-style: italic;
      padding-right: 5px;
    }

    .point {
      font-family: 楷体, serif;
      font-size: 30px;
      margin-left: -5px;
      font-weight: 1000;
      font-style: italic;
    }

    .float {
      padding-right: 2.5px;
      font-family: 楷体, serif;
      font-size: 20px;
      margin-left: -6px;
      font-weight: 1000;
      font-style: italic;
    }

    .end {
      margin-left: 5px;
      font-size: 15px;
    }

    /* 评分数字 ↑ */


    /* 游戏类型 */

    .type, .platform, .score, .website {
      font-size: 15px;
      width: 100%;
      float: left;
      height: 25px;
    }

    .rateCount {
      font-size: 10px;
      margin-left: 10px;
    }

  }
`

export const HeadBackgroundBox = styled.div`
  width: inherit;
  position: absolute;
  overflow: hidden;
  height: 380px;
`
export const BodyLeft = styled.div`
  width: 60%;
  height: auto;
  float: left;
`
export const BodyRight = styled.div`
  width: 38%;
  height: auto;
  float: right;
`
